/*
 * @Author: xiaxia
 * @Description: 
 * @Date: 2024-07-08 16:40:43
 * @LastEditTime: 2024-07-09 16:36:44
 * @FilePath: \project\src\api\acl\role\type.ts
 */
export interface ResponseData {
  code: number,
  message: string,
  ok: boolean,
}

// 角色
export interface RoleInfo {
  id?: number|string,
  createTime?: string,
  updateTime?: string,
  roleName?: string,
  remark?: string,
}
export interface RoleListResponse extends ResponseData {
  data: {
    records: RoleInfo[],
    total: number,
    size: number,
    current: number,
    orders: [],
    optimizeCountSql: boolean,
    hitCount: boolean,
    searchCount: boolean,
    pages: number
  }
}

// 菜单
export interface menuInfo {
  id: number,
  createTime: string,
  updateTime: string,
  pid: number,
  name: string,
  code: string,
  toCode: string,
  type: number,
  status: number,
  level: number,
  children: menuInfo[],
  select?: boolean
}
export interface MenuListResponse extends ResponseData {
  data:menuInfo[]
}
// 分配菜单
export interface menuData  {
  permissionIdList: number[],
  userId: number,
}